body {
  background-color: #111;
  color: black;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "policetitre";
  src: url(./asset/policetitre/Imperial_Script/ImperialScript-Regular.ttf);
  font-weight: normal;
  font-style: normal;
}

/* est sur tout les pages */

.top {
  position: sticky;
  top: 0;
  display: flex;
  width: 100%;
  height: 14vh;
  background-color: black;
  z-index: 9999;
}
@media (min-width: 1024px) {
  .top {
    width: 100%;
    height: 15vh;
  }
}

/* bouton menu */
.menu-btn {
  position: sticky;
  top: 0;
  background-color: red;
  color: white;
  border: 2px solid red;
  font-size: 17px;
  height: 6vh;
  width: 100px;
  border-radius: 40px;
  cursor: pointer;
  z-index: 0; /* au-dessus du menu */
  transition: 0.5s;
  margin: auto 0 auto 20px;
}

.menu-btn:hover {
  background-color: white;
  color: red;
  left: 15px;
  height: 7vh;
  width: 110px;
}

@media (min-width: 1024px) {
  .menu-btn {
    font-size: 17px;
    height: 8vh;
    width: 150px;
  }

  .menu-btn:hover {
    height: 9vh;
    width: 165px;
  }
}

/* --- Panneau du menu latéral --- */
.side-menu {
  height: 100%;
  width: 0; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  background-color: #090909;
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
  z-index: 1000;
}

/* --- Liens du menu --- */
.side-menu a {
  padding: 10px 25px;
  text-decoration: none;
  font-size: 30px;
  color: white;
  display: block;
  transition: 0.3s;
}
.side-menu a:hover {
  background-color: #333;
}

/* --- Bouton de fermeture --- */
.side-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

/*fin bouton menus*/

.top img {
  display: block;
  margin: auto auto auto auto;
  height: 11vh;
}

@media (min-width: 1024px) {
  .top img {
    height: 13vh;
  }
}

.reserver {
  color: red;
  right: 20px;
  margin: auto 20px auto 0;
  font-size: 17px;
  height: 6vh;
  width: 100px;
  background-color: red;
  color: white;
  border: 2px solid red;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.5s;
}

.reserver:hover {
  background-color: white;
  color: red;
  margin: auto 15px auto 0vw;
  height: 7vh;
  width: 110px;
}

@media (min-width: 1024px) {
  .reserver {
    font-size: 17px;
    height: 8vh;
    width: 150px;
  }

  .reserver:hover {
    height: 9vh;
    width: 165px;
  }
}

.bas {
  display: flex;
  position: relative;
  background-color: black;

  margin: 2vh 0 0 0;
  height: 7vh;
  bottom: 0vh;
  z-index: 9000;
}

.bas ul {
  margin: auto auto auto auto;
}

.bas a {
  display: inline-block;
  color: gray;
  margin-left: auto;
  margin-right: 3vw;
  text-decoration: none;
  font-size: 1.5vw;
  transition-duration: 0.5s;
}

.bas a:hover {
  font-size: 2vw;
  text-decoration: underline;
  color: red;
}

.titre_réserver {
  position: relative;
  display: block;
  height: 60vh;
  width: 100%;
  margin-bottom: 0;
  background-color: black;
}

h1 {
  margin: 0;
  position: absolute;
  font-family: "policetitre", Arial, sans-serif;
  z-index: 2; /* au-dessus de l’image */
  top: 35%;
  left: 50%; /* centré (pour être sûr qu’il reste visible) */
  transform: translate(-50%, -50%);
  color: #f2eee8;
  white-space: nowrap;
  text-align: center;
  font-size: 25vh;
  font-style: normal;
  font-weight: normal;
}

h2 {
  margin: 0;
  position: absolute;
  text-align: center;
  color: #9e1b32;
  z-index: 2; /* au-dessus de l’image */
  top: 70%;
  left: 50%; /* centré (pour être sûr qu’il reste visible) */
  transform: translate(-50%, -50%);
  white-space: nowrap;
  text-align: center;
  font-size: 18vh;
  font-style: normal;
  font-weight: normal;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 90px;
    top: 40%;
  }
  h2 {
    font-size: 60px;
    top: 60%;
  }
}

.formulaire {
  width: min(1100px, 88vw);
  margin: 6vh auto 10vh;
  padding: 0;
  font-family: Arial, sans-serif;
}

#bookingForm {
  background-color: #0a0a0a;

  border: 1px solid #252525;
  border-radius: 25px;

  padding: 50px 60px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#bookingForm h3 {
  margin: 0 0 45px;

  color: white;

  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 400;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.form-row label {
  flex: 1;
}

label {
  display: block;
  margin-top: 10px;
  color: red;
}

#bookingForm label {
  display: flex;
  flex-direction: column;
  color: #eeeeee;
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}

input {
  width: 100%;
  padding: 8px;
  background-color: gray;
  color: black;
  border: 2px solid black;
  padding: 10px;
  border-radius: 8px;
  outline: none;
}

#bookingForm input,
#bookingForm select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 15px 16px;
  background-color: #161616;
  color: white;
  border: 1px solid #333;
  border-radius: 12px;
  font-size: 17px;
  outline: none;
  transition: 0.3s;
}

#bookingForm input:focus,
#bookingForm select:focus {
  border-color: #9e1b32;
  box-shadow: 0 0 0 3px rgba(158, 27, 50, 0.15);
}

.guests-label {
  max-width: 300px;
  margin: 5px auto 35px !important;
}

.extras-section {
  margin-top: 40px;
  padding: 30px;

  background-color: #111;
  border: 1px solid #292929;
  border-radius: 18px;

  text-align: center;
}

.extras-section h3 {
  margin: 0 0 10px;

  color: #f2eee8;

  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 400;
}

.extras-intro {
  margin: 0 0 25px;

  color: #aaa;
  font-size: 16px;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.extra-card {
  position: relative;

  display: block;

  padding: 20px;

  background-color: #161616;

  border: 1px solid #333;
  border-radius: 14px;

  cursor: pointer;

  transition: 0.3s;
}

.extra-card:hover {
  border-color: #9e1b32;
  transform: translateY(-2px);
}

.extra-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extra-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.extra-name {
  color: #f2eee8;
  font-size: 18px;
}

.extra-price {
  color: #9e1b32;
  font-size: 20px;
  font-weight: 600;
}

.extra-card:has(input:checked) {
  border-color: #9e1b32;

  background-color: rgba(158, 27, 50, 0.12);

  box-shadow: 0 0 0 2px rgba(158, 27, 50, 0.12);
}

.extra-card:has(input:checked) .extra-name {
  color: white;
}

.extra-card:has(input:checked) .extra-price {
  color: #c52a43;
}

.extras-link {
  display: inline-block;

  margin-top: 25px;

  color: #9e1b32;

  text-decoration: none;
  font-size: 16px;

  transition: 0.3s;
}

.extras-link:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .extras-section {
    margin-top: 30px;
    padding: 22px 15px;
    border-radius: 16px;
  }

  .extras-section h3 {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .extras-intro {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .extras-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .extra-card {
    padding: 16px;
    border-radius: 12px;
  }

  .extra-content {
    gap: 12px;
  }

  .extra-name {
    font-size: 16px;
    text-align: left;
  }

  .extra-price {
    font-size: 18px;
    white-space: nowrap;
  }

  .extras-link {
    margin-top: 20px;
    font-size: 14px;
  }
}

.prix {
  margin-top: 35px;
  padding: 25px 30px;
  background-color: #111;
  border: 1px solid #292929;
  border-radius: 16px;
  color: white;
  font-size: 18px;
}

.prix > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.prix-total {
  margin-top: 10px;
  padding-top: 20px !important;

  border-top: 1px solid #333;
}

.prix-total strong {
  color: #9e1b32;
  font-size: 30px;
}

#dateMessage {
  text-align: center;
  margin: 20px 0;
  font-size: 17px;
}

#reserveBtn {
  display: block;
  width: 100%;
  margin-top: 25px;
  padding: 18px;
  background-color: #9e1b32;
  color: white;
  border: 1px solid #9e1b32;
  border-radius: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

#reserveBtn:hover {
  background-color: transparent;
  color: #9e1b32;
}

button {
  margin-top: 15px;
  padding: 12px;
  width: 100%;
  background: red;
  color: #fff;
  border: none;
  border-radius: 30px;
  border: 2px solid red;
  transition: 0.5s;
}

button:hover {
  background-color: white;
  color: red;
  border: 2px solid red;
}

.commande {
  margin: 0;
  width: 100%;
  height: 10px;
  background-color: #111;
  color: black;

  margin-top: 20px;
  white-space: pre;
  padding-top: 10px;
}

@media (max-width: 700px) {
  /* Zone du titre */
  .titre_réserver {
    height: 40vh;
    background-color: black;
  }

  .titre_réserver h1 {
    font-size: clamp(55px, 18vw, 90px);
    top: 35%;
    color: #f2eee8;
  }

  .titre_réserver h2 {
    font-size: clamp(38px, 12vw, 60px);
    top: 65%;
    color: #9e1b32;
  }

  /* Conteneur du formulaire */
  .formulaire {
    width: 92%;
    margin: 4vh auto 7vh;
  }

  #bookingForm {
    padding: 30px 20px;
    border-radius: 20px;
  }

  #bookingForm h3 {
    font-size: 34px;
    margin-bottom: 30px;
  }

  /* Les deux colonnes deviennent une seule colonne */
  .form-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Labels */
  #bookingForm label {
    font-size: 15px;
  }

  /* Champs */
  #bookingForm input,
  #bookingForm select {
    font-size: 16px;
    padding: 13px 14px;
    margin-top: 7px;
  }

  /* Nombre de personnes */
  .guests-label {
    max-width: 100%;
    margin: 0 0 25px !important;
  }

  /* Bloc prix */
  .prix {
    margin-top: 25px;
    padding: 20px;
    font-size: 16px;
  }

  .prix-total strong {
    font-size: 26px;
  }

  /* Message disponibilité */
  #dateMessage {
    font-size: 15px;
    margin: 18px 0;
  }

  /* Bouton réserver */
  #reserveBtn {
    padding: 14px;
    font-size: 17px;
  }
}

.calendar-section {
  width: min(1100px, 88vw);
  margin: 6vh auto;
  text-align: center;
}

.calendar-section h3 {
  color: white;
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 30px;
}

.calendar {
  padding: 35px 45px;

  background-color: #0a0a0a;

  border: 1px solid #252525;
  border-radius: 25px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 30px;
}

.calendar-header h4 {
  color: #f2eee8;
  font-size: 28px;
  font-weight: 400;
  margin: 0;
}

.calendar-header button {
  width: 45px;
  height: 45px;
  padding: 0;
  margin: 0;

  border-radius: 50%;
  border: 1px solid #9e1b32;

  background-color: transparent;
  color: white;

  font-size: 20px;

  cursor: pointer;
}

.calendar-header button:hover {
  background-color: #9e1b32;
  color: white;
}

.calendar-days,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-days {
  margin-bottom: 12px;

  color: #888;
  font-size: 15px;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1.6;

  background-color: #161616;
  color: #eeeeee;

  border: 1px solid #292929;
  border-radius: 10px;

  font-size: 17px;
}

.calendar-day.available {
  background-color: #161616;
}

.calendar-day.arrival {
  background: linear-gradient(
    135deg,
    #161616 0%,
    #161616 50%,
    #9e1b32 50%,
    #9e1b32 100%
  );
}

.calendar-day.departure {
  background: linear-gradient(
    135deg,
    #9e1b32 0%,
    #9e1b32 50%,
    #161616 50%,
    #161616 100%
  );
}

.calendar-day.turnover {
  background-color: #9e1b32;
  color: white;
}

.calendar-day.occupied {
  background-color: #9e1b32;
  color: white;
}

.calendar-day.past {
  opacity: 0.3;
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 35px;

  margin-top: 30px;

  color: #ccc;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-legend i {
  width: 18px;
  height: 18px;
  display: inline-block;

  border: 1px solid #333;
  border-radius: 4px;
}

.legend-available {
  background: #161616;
}

.legend-arrival {
  background: linear-gradient(
    135deg,
    #161616 0%,
    #161616 50%,
    #9e1b32 50%,
    #9e1b32 100%
  );
}

.legend-departure {
  background: linear-gradient(
    135deg,
    #9e1b32 0%,
    #9e1b32 50%,
    #161616 50%,
    #161616 100%
  );
}

.legend-occupied {
  background: #9e1b32;
}

.available-dot,
.reserved-dot {
  display: inline-block;

  width: 12px;
  height: 12px;

  border-radius: 50%;
}

.available-dot {
  background-color: #292929;
}

.reserved-dot {
  background-color: #9e1b32;
}

@media (max-width: 700px) {
  .calendar-section {
    width: 94%;
    margin: 4vh auto;
  }

  .calendar-section h3 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .calendar {
    padding: 20px 12px;
    border-radius: 18px;
  }

  .calendar-header {
    margin-bottom: 20px;
  }

  .calendar-header h4 {
    font-size: 22px;
  }

  .calendar-header button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .calendar-days,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-days {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .calendar-day {
    aspect-ratio: 1 / 1;
    font-size: 14px;
    border-radius: 8px;
  }

  .calendar-legend {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
  }
}

.red {
  color: #9e1b32;
}
